I3DShLightingModel Struct Reference
[Shell Interfaces]

List of all members.

Public Member Functions

virtual void MCCOMAPI ShadeAndLight (LightingDetail &result, const LightingContext &lightingContext)=0
virtual void MCCOMAPI CalculateDirectLighting (LightingDetail &result, const LightingContext &lightingContext)=0
virtual void MCCOMAPI CalculateReflection (TMCColorRGB &reflectionColor, const LightingContext &lightingContext, const ShadingOut &shading)=0
virtual void MCCOMAPI CalculateCaustics (TMCColorRGB &causticColor, const LightingContext &lightingContext, const ShadingOut &shading)=0
virtual void MCCOMAPI CalculateIndirectLighting (TMCColorRGB &indirectDiffuseColor, const LightingContext &lightingContext, const ShadingOut &shading)=0
virtual void MCCOMAPI CalculateTransparency (TMCColorRGBA &resColor, const LightingContext &lightingContext, const ShadingOut &shading)=0
virtual void MCCOMAPI CalculateAlpha (TMCColorRGBA &resColor, const LightingContext &lightingContext, const ShadingOut &shading)=0
virtual void MCCOMAPI CalculateSubsurfaceScattering (TMCColorRGB &subsurfaceColor, const LightingContext &lightingContext, const ShadingOut &shading)=0

Detailed Description

This interface is passed to I3DExShader::ShadeAndLight() and provides a default implementation for the lighting model calls.


Member Function Documentation

virtual void MCCOMAPI I3DShLightingModel::CalculateAlpha (  TMCColorRGBA &  resColor,
const LightingContext &  lightingContext,
const ShadingOut &  shading
)  [pure virtual]
 

Default implementation of the Alpha channel.

Parameters:
resColor The resulting color.
lightingContext Info about the point being shaded and the lighting of the scene.
shading The shading at this point.

virtual void MCCOMAPI I3DShLightingModel::CalculateCaustics (  TMCColorRGB &  causticColor,
const LightingContext &  lightingContext,
const ShadingOut &  shading
)  [pure virtual]
 

Default implementation of the caustics.

Parameters:
causticColor The resulting caustic color.
lightingContext Info about the point being shaded and the lighting of the scene.
shading The shading at this point.

virtual void MCCOMAPI I3DShLightingModel::CalculateDirectLighting (  LightingDetail &  result,
const LightingContext &  lightingContext
)  [pure virtual]
 

Default implementation of the direct lighting.

Parameters:
result The result direct lighting
lightingContext Info about the point being shaded and the lighting of the scene.

virtual void MCCOMAPI I3DShLightingModel::CalculateIndirectLighting (  TMCColorRGB &  indirectDiffuseColor,
const LightingContext &  lightingContext,
const ShadingOut &  shading
)  [pure virtual]
 

Default implementation of the Global Illumination.

Parameters:
indirectDiffuseColor The resulting indirect lighting color.
lightingContext Info about the point being shaded and the lighting of the scene.
shading The shading at this point.

virtual void MCCOMAPI I3DShLightingModel::CalculateReflection (  TMCColorRGB &  reflectionColor,
const LightingContext &  lightingContext,
const ShadingOut &  shading
)  [pure virtual]
 

Default implementation of the reflections.

Parameters:
reflectionColor The resulting reflection color.
lightingContext Info about the point being shaded and the lighting of the scene.
shading The shading at this point.

virtual void MCCOMAPI I3DShLightingModel::CalculateSubsurfaceScattering (  TMCColorRGB &  subsurfaceColor,
const LightingContext &  lightingContext,
const ShadingOut &  shading
)  [pure virtual]
 

Default implementation of the Subsurface Scattering.

Parameters:
subsurfaceColor The resulting subsurface scattering color.
lightingContext Info about the point being shaded and the lighting of the scene.
shading The shading at this point.

virtual void MCCOMAPI I3DShLightingModel::CalculateTransparency (  TMCColorRGBA &  resColor,
const LightingContext &  lightingContext,
const ShadingOut &  shading
)  [pure virtual]
 

Default implementation of the Transparency.

Parameters:
resColor The resulting transparency color.
lightingContext Info about the point being shaded and the lighting of the scene.
shading The shading at this point.

virtual void MCCOMAPI I3DShLightingModel::ShadeAndLight (  LightingDetail &  result,
const LightingContext &  lightingContext
)  [pure virtual]
 

Default implementation for the shading and lighting in one point.

Parameters:
result The lighting that is returned.
lightingContext Info about the point being shaded and the lighting of the scene.


The documentation for this struct was generated from the following file:
Generated on Wed Dec 7 14:27:34 2005 for Carrara SDK Doc by  doxygen 1.4.5